import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 引入element-ui
import 'element-ui/lib/theme-chalk/index.css'
import ElementUI from 'element-ui'
Vue.use(ElementUI, { size: 'small' })

// 引入css文件
import '@/assets/css/index.scss'
import gb from '@/assets/css/global.scss'
Vue.prototype.$gb = gb

// 引入axios
import $api from '@/api'
const axios = { $api }
Vue.prototype.$axios = axios

// 引入中文文本集合
import zh from '@/zh'
Vue.prototype.$t = zh

// 引入router的拦截器
import '@/router/permission.js'

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
